<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Title</title>
    <style>
        *{
            /* 初始化 */
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body{
            height: 100vh;
            /* 弹性布局 居中显示 */
            display: flex;
            justify-content: center;
            align-items: center;
            /* 渐变背景 */
            background: linear-gradient(to top left,cornflowerblue,cadetblue,lightpink);
            /* 溢出隐藏 */
            overflow: hidden;
        }
        .container{
            text-align: center;
            color: white;
        }
        .container h1{
            font-size: 40px;
            font-weight: 100;
            letter-spacing: 2px;
            margin-bottom: 15px;
            /* 过渡效果 */
            transition: 1s ease-in-out;
        }
        .form{
            display: flex;
            flex-direction: column;
            align-items: center;

            z-index: 2;
            opacity: 1;
            /* 不透明度改变时的过渡效果 */
            transition: opacity 0.5s;
            /*border-radius: 10px;*/
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
            position: relative;
            overflow: hidden;
        }

        .form input{
            outline: none;
            border: 1px solid rgba(255,255,255,0.4);
            background-color: rgba(255,255,255,0.2);
            width: 450px;
            padding: 10px 15px;
            border-radius: 3px;
            margin: 0 auto 10px auto;
            text-align: center;
            color: #fff;
            font-size: 15px;
            transition: 0.25s;
        }

        .form input::placeholder{
            color: #fff;
            font-size: 14px;
            font-weight: 500;
        }
        .form input:hover{
            background-color: rgba(255,255,255,0.4);
        }
        .form input:focus{
            background-color: #fff;
            width: 480px;
            color:rgba(0,0,0,0.68);
        }
        .btn-login{
            outline: none;
            background-color: #fff;
            color: #ff719a;
            border: none;
            width: 250px;
            padding: 10px 15px;
            border-radius: 3px;
            font-size: 15px;
            cursor: pointer;
            transition: 0.25s;
        }
        .btn-login:hover{
            background-color: #f5f7f9;
        }
        /* 背景方块 */
        .bg-squares{
            list-style: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        .bg-squares li{
            width: 40px;
            height: 40px;
            background-color: rgba(255,255,255,0.1);
            position: absolute;
            bottom: -160px;
            /* 执行动画：动画名 时长 线性 无限次播放 */
            animation: square 20s linear infinite;
        }
        /* 为每一个方块设置不同的位置、大小、动画延迟时间、动画时长、背景色 */
        .bg-squares li:nth-child(1){
            left: 10%;
        }
        .bg-squares li:nth-child(2){
            left: 20%;
            width: 80px;
            height: 80px;
            /* 动画延迟时间 */
            animation-delay: 2s;
            /* 动画时长 */
            animation-duration: 17s;
        }
        .bg-squares li:nth-child(3){
            left: 25%;
            animation-delay: 4s;
        }
        .bg-squares li:nth-child(4){
            left: 40%;
            width: 60px;
            height: 60px;
            background-color: rgba(255,255,255,0.25);
            animation-duration: 22s;
        }
        .bg-squares li:nth-child(5){
            left: 70%;
        }
        .bg-squares li:nth-child(6){
            left: 80%;
            width: 120px;
            height: 120px;
            background-color: rgba(255,255,255,0.2);
            animation-delay: 3s;
        }
        .bg-squares li:nth-child(7){
            left: 32%;
            width: 160px;
            height: 160px;
            animation-delay: 7s;
        }
        .bg-squares li:nth-child(8){
            left: 55%;
            width: 20px;
            height: 20px;
            animation-delay: 15s;
            animation-duration: 40s;
        }
        .bg-squares li:nth-child(9){
            left: 25%;
            width: 10px;
            height: 10px;
            background-color: rgba(255,255,255,0.3);
            animation-delay: 2s;
            animation-duration: 40s;
        }
        .bg-squares li:nth-child(10){
            left: 90%;
            width: 160px;
            height: 160px;
            animation-delay: 11s;
        }
        .container.success h1{
            transform: translateY(75px);
        }
        .container.success .form{
            opacity: 0;
            visibility: hidden;
        }

        /* 定义动画 */
        @keyframes square {
            0%{
                transform: translateY(0);
            }
            100%{
                transform: translateY(-120vh) rotate(600deg);
            }
        }
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }


        select option {
            padding: 5px;
        }

        input[type="submit"] {
            background-color: cornflowerblue;
            color: white;
            padding: 10px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: background-color 0.3s ease;
        }

        input[type="submit"]:hover {
            background-color: rgba(25,255,155,0.5);
        }
        input[type="reset"]:hover {
            background-color:rgba(0,0,150,0.9);
        }
    </style>
</head>
<body>
<div class="container">
    <h1><strong>安徽省计算机考试报名系统</strong></h1>
    <div class="form">


        <label for="name">姓名：</label>
        <input type="text" id="name" name="name" required placeholder="请输入用户名">

        <label for="email">电子邮件：</label>
        <input type="email" id="email" name="email" required placeholder="请输入电子邮箱" pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$">



        <label for="birthdate">出生日期：</label>
        <input type="date" id="birthdate" name="birthdate" required>

        <label for="idcard">身份证号：</label>
        <input type="text" id="idcard" name="idcard" required pattern="^\d{15}|\d{18}$">

        <label for="phone">手机号：</label>
        <input type="text" id="phone" name="phone" required pattern="^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$">

        <input type="submit" value="提交">
        <input type="reset" value="重置">
    </div>
</div>
<ul class="bg-squares">
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
</ul>
<script>

</script>
</body>
</html>